package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 rc_news
 *
 * @author ruoyi
 * @date 2023-11-19
 */
public class RcNews extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 启用 */
    private String able;

    /** 类型 */
    @Excel(name = "类型")
    private String cate;

    /** 页面编码 */
    @Excel(name = "页面编码")
    private String link;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 图片 */
    @Excel(name = "图片")
    private String pic;

    /** 排序 */
    @Excel(name = "排序")
    private String sort;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deployTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setAble(String able)
    {
        this.able = able;
    }

    public String getAble()
    {
        return able;
    }
    public void setCate(String cate)
    {
        this.cate = cate;
    }

    public String getCate()
    {
        return cate;
    }
    public void setLink(String link)
    {
        this.link = link;
    }

    public String getLink()
    {
        return link;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setPic(String pic)
    {
        this.pic = pic;
    }

    public String getPic()
    {
        return pic;
    }
    public void setSort(String sort)
    {
        this.sort = sort;
    }

    public String getSort()
    {
        return sort;
    }
    public void setDeployTime(Date deployTime)
    {
        this.deployTime = deployTime;
    }

    public Date getDeployTime()
    {
        return deployTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("able", getAble())
                .append("cate", getCate())
                .append("link", getLink())
                .append("title", getTitle())
                .append("pic", getPic())
                .append("sort", getSort())
                .append("deployTime", getDeployTime())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
